package day06;

public class ArrayDemo {
    public static void main(String[] args) {
        int a[]={1,2,3,4,5,6,7};
        int b[]=new int[5];
        System.arraycopy(a,2,b,0,4);
        for (int i=0;i<b.length;i++){
            System.out.println(b[i]);
        }
    }
}
